package com.person.yhzs.user.entity;

import java.io.Serializable;

/**
 * @author luolin
 * @Description
 * @createTime 2022年11月02日 16:41:00
 */
public class Permission implements Serializable {
    private static final long serialVersionUID = 3383144918739769243L;

    // 权限id
    private Long id;

    // 父权限id
    private Long p_id;

    // 权限类型
    private Integer type;

    // 权限名称
    private String name;

    // 权限描述
    private String details;

    // 权限标识
    private String mark;

    // 权限
    private String router;

    // 顺序
    private Long order;

    // 图标
    private String icon;

    // 是否可用
    private Boolean enable;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getP_id() {
        return p_id;
    }

    public void setP_id(Long p_id) {
        this.p_id = p_id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getRouter() {
        return router;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    public Long getOrder() {
        return order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", p_id=" + p_id +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", details='" + details + '\'' +
                ", mark='" + mark + '\'' +
                ", router='" + router + '\'' +
                ", order=" + order +
                ", icon='" + icon + '\'' +
                ", enable=" + enable +
                '}';
    }
}
